<?php
showtipss($touclicklang['tcmsg0010'],'tips1',true,$touclicklang['tipsTitle4']);

if(function_exists('mb_strlen')){
	loadcache("touclick_risk");
	if(!$_G['cache']['touclick_risk']){
		save_syscache("touclick_risk", array(
		'riskip'=>array('127.0.0.1'=>'110'),
		'riskuser'=>array('touclickriskusrisopen'=>'1')
		)
		);
	}
	if(submitcheck('mcontentsubmit')) {
		if($_POST['mcontentflag'] != ""){
			$ispara = ($_POST['mcontentflag']==0) ? 0 : 1;
			$_G['cache']['touclick_risk']['riskuser']['touclickriskusrisopen'] = $ispara;
			save_syscache('touclick_risk', $_G['cache']['touclick_risk']);
			cpmsg("{$touclicklang['yes']}", "action=plugins&cp=$cp&pmod=monitor&operation=$operation&do=$do", 'succeed');
		}else{
			cpmsg("{$touclicklang['paraneed']}", "", 'error');
		}
	}
	
	
	$isopen = $_G['cache']['touclick_risk']['riskuser']['touclickriskusrisopen'] ? "checked" : "";
	$isclose = $isopen ? "" : "checked";
	showformheader("plugins&cp=$cp&pmod=monitor&operation=$operation&do=$do", "",'monitoripform','post');
	showtableheader($touclicklang['tcmsg0007']);
	echo <<<EOF
<TR >
<TD class=td27 colSpan=2 s="1">{$touclicklang['tcmsg0007']}</TD></TR>
<TR class=noborder ><TD class="vtop rowform">
	<UL onmouseover=altStyleTc(this);>
	<LI class="{$isopen}"><INPUT class=radio type=radio value=1 autocomplete="off" {$isopen} name="mcontentflag">&nbsp;{$touclicklang['tcmsg0005']}</LI>
	<LI class="{$isclose}"><INPUT class=radio type=radio value=0 autocomplete="off" {$isclose} name="mcontentflag">&nbsp;{$touclicklang['tcmsg0006']}</LI></UL></TD>
</TR>
<tr><td><input id="mcontentsubmit" class="btn" type="submit" value="{$touclicklang['submit']}" name="mcontentsubmit"></td></tr>
EOF;
	showtablefooter();
	showformfooter();
}else{
	cpmsg("PHP&#26410;&#21551;&#29992;mb_strlen&#20989;&#25968;", "", 'error');
}